<div class="pa clearfix">
  <div class="span-p70 colborder">
    <h3>用户列表</h3>
    <%#*<hr/>%>
    <%#*<div class="pa-bottom">%>
      <%#= form_tag '', :method => :get do -%>
        <%#= select_tag 'verified', options_for_select({'所有' => 'all', '已激活' => 'verified', '等待激活' => 'unverified'}, @verified) %>
        <%#= submit_tag '筛选' %>
      <%# end %>
    <%#*</div>%>
    <hr/>
    <div>
      <table>
        <tr>
          <th>Id</th>
          <th>邮箱</th>
          <th>姓名</th>
          <th>激活</th>
          <th>认证</th>
          <th>操作</th>
        </tr>
        <% @users.each do |user| %>
          <tr>
            <td><%= user.id %></td>
            <td><%= link_to user.email, "/users/show/#{user.id}", :target => '_blank' %></td>
            <td><%= user.name %></td>
            <td><%= user.confirmed_show %></td>
            <td><%= user.verified_show %></td>
            <td>
              <%= link_to '删除', "/users/delete/#{user.id}", :confirm => '你确认要删除吗？' %>
            </td>
          </tr>
        <% end %>
      </table>
      <div class="c666">
        <%= will_paginate @users %>
      </div>
    </div>
  </div>
  <div class="span-5 last">
    <%= render 'layouts/admin/users_sidebar' %>
  </div>
</div>